const info = {
  name: "yz",
  friend: { name: "aaaa" }
}
const obj = {...info, name: "bbb"}
console.log(obj)

obj.friend.name = "ccc"
console.log(info.friend.name)
